﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Kollektiv.Controller
{
    [DataContract]
    public class Pong
    {
        [DataMember(Order = 0)]
        public PongType Type { get; private set; }

        [DataMember(Order = 1)]
        public string Query { get; private set; }

        [DataMember(Order = 2)]
        public object Data { get; private set; }

        public Pong(PongType type, string query, object data)
        {
            this.Type = type;
            this.Query = query;
            this.Data = data;
        }
    }

    public enum PongType
    {
        Request,
        Response
    }
}
